package wli.stigs;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class VulnerabilityTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testCompareTo() {
		Vulnerability  vab1 = new Vulnerability ();
		vab1.setName("Name");
		vab1.setSeverity("CAT I");
		vab1.setDescription("This is a test");
		vab1.setDetails("detail informaiton goes here");
		vab1.setDiscussion("what you think?");
		vab1.setStatus("Unknown");
		vab1.setStigId("A");
		vab1.setVms6id("VMS-00001");

		Vulnerability  vab2 = new Vulnerability ();
		vab2.setName("Name");
		vab2.setSeverity("CAT I");
		vab2.setDescription("This is a test");
		vab2.setDetails("detail informaiton goes here");
		vab2.setDiscussion("what you think?");
		vab2.setStatus("Unknown");
		vab2.setStigId("Z");
		vab2.setVms6id("VMS-00001");
		
		System.out.println(">>>>>>>>>"+vab2.compareTo(vab1));
	}
}
